<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:66:"/var/www/fish/application/crm/view/saleprogram/addSaleProgram.html";i:1512799957;}*/ ?>
<!DOCTYPE html>
<html>
    
<head>
    <meta charset="UTF-8">
	<title>小鱼ADMIN</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
	<link rel="stylesheet" href="/public/static/css/font.css">
	<link rel="stylesheet" href="/public/static/css/bgadmin.css">
	<script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
	<script type="text/javascript" src="/public/static/js/jquery.form.js"></script>  
</head>

<body>
    <div class="bg-body">
        <form  action="#" method="post" id="mainForm" class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline">
					<label class="layui-form-label">
						<span class="bg-red">*&nbsp;&nbsp;</span>方案名称：
					</label>
					<div class="layui-input-inline">
						<input type="text" id="program_name" name="program_name" lay-verify="required" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">方案分类：</label>
					<div class="layui-input-inline">
					  <select name="type_id" id="type_id" lay-filter="aihao"  lay-verify="">
						<option value=""></option>
						<?php if(is_array($typeData) || $typeData instanceof \think\Collection || $typeData instanceof \think\Paginator): $i = 0; $__LIST__ = $typeData;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?> 
						<option value="<?php echo $vo2['id']; ?>"><?php echo $vo2['program_type']; ?></option>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					  </select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">
						<span class="bg-red">*&nbsp;&nbsp;</span>是否显示：
					</label>
					<div class="layui-input-inline">
						<select name="enable" id="enable" lay-filter="text_type" lay-verify="required">
						  <option value="Y">是</option>
						  <option value="N">否</option>
						</select>
					</div>
				</div>
		    </div>
			<div class="layui-form-item layui-form-text">
				<label for="desc" class="layui-form-label">
					描述：
				</label>
				<div class="layui-input-block">
					<input type="text" name="description" lay-verify="required" autocomplete="off" placeholder="请输入描述" class="layui-input">
				</div>
			</div>

            <fieldset class="layui-elem-field layui-field-title">
			  <legend>商品信息</legend>
			</fieldset>
			
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">
						选择商品：
					</label>
					<div class="layui-input-inline">
						<input type="text" id="good_name_id" onclick="bg_admin_show('选择商品','../orderManager/goodsList.html',600,400)" autocomplete="off" placeholder="点击选择商品" class="layui-input" readonly="readonly" >
					</div>
				</div>
			</div>
			
			<table class="layui-table" lay-data="{id: 'idTest'}" lay-filter="demo">
			  <thead>
				<tr>
					<th lay-data="{checkbox:true, LAY_CHECKED: true}"></th>
					<th lay-data="{field:'id', align:'center', width:60 }">编号</th>
					<th lay-data="{field:'good_name', align:'center', width:160 }">商品名称</th>
					<th lay-data="{field:'good_num', width:100,sort: true}">商品货号</th>
					<th lay-data="{field:'price', width:100,sort: true}">商品价格</th>
					<th lay-data="{field:'cat_name', width:100 }">商品分类</th>
					<th lay-data="{field:'goods_num', width:100 }">商品数量</th>
					<th lay-data="{field:'goods_money', width:100 }">商品总价格</th>
					<th lay-data="{field:'simple_description', width:200}">描述</th>
					<th lay-data="{fixed: 'right', width:100, align:'center', toolbar: '#barDemo'}">操作</th>
				 </tr>
			  </thead>
			</table>
			 
			<script type="text/html" id="barDemo">
			  <a class="layui-btn layui-btn-mini" lay-event="del">清除商品</a>
			</script>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">
						方案总价：
					</label>
					<div class="layui-input-inline">
						<input type="text" id="goods_amount_id" name="price" autocomplete="off"  class="layui-input" >
					</div>
				</div>
			</div>
            <div class="layui-form-item">
				<a class="layui-btn" lay-submit=""  id="save" lay-filter="add">增加</a>
			</div>
        </form>
    </div>
</body>
<script type="text/javascript" src="/public/static/crm/js/saleProgram/addSaleProgram.js"></script>

</html>